package com.marchsoft.musicalstore.exception;
/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 源
 * Date: 2019-11-17
 * Time: 11:22
 */
public class CumtomException extends RuntimeException {
    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Throwable getThrowable() {
        return throwable;
    }

    public void setThrowable(Throwable throwable) {
        this.throwable = throwable;
    }

    private String message;
    private Throwable throwable;

    public CumtomException(String message){
        super(message);
        this.message = message;
    }
    public CumtomException(Throwable throwable){
        super(throwable);
        this.throwable = throwable;
    }
}
